package com.gw.smscheck.dao.sys;


import com.gw.smscheck.entity.sys.DataDictionary;

import java.util.List;

/**
 * 数据字典
 * @author pzr
 * @date 2018年7月20日
 */
public interface DataDictionaryMapper {
	
	/**
	 * 页面查询
	 * @return
	 */
	public List<DataDictionary> pageSelect(DataDictionary dto);
	/**
	 * 查询根节点
	 * @return
	 */
	public List<DataDictionary> parentRecord(DataDictionary dto);
	/**
	 * 通过code获取子集合
	 * @return
	 */
	public List<DataDictionary> getChildrenById(DataDictionary dto);
	
	/**
	 * 新增
	 * @param dataDictionary
	 * @return
	 */
	public Integer add(DataDictionary dataDictionary);
	
	/**
	 * 通过id获取
	 * @param dataDictionary
	 * @return
	 */
	public DataDictionary getById(DataDictionary dataDictionary);

	/**
	 * 修改
	 * @param dataDictionary
	 * @return
	 */
	public Integer update(DataDictionary dataDictionary);
	
	/**
	 * 删除
	 * @param dataDictionary
	 * @return
	 */
	public Integer del(DataDictionary dataDictionary);
}
